package cn.zcj.studytest.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_image")
public class Image {
    @TableId(value = "id", type = IdType.AUTO)
    private long id;

    private long userId;

    private byte[] img;

    private Boolean isBuy;
    //金钱
    private double price;
//    @Transient
    @TableField(exist = false)
    private  String username;
}
